package com.neo.impatient.C04_MapTuple.C04_07_zipper

object ZipperTest {
  def main(args: Array[String]): Unit = {

    println("看效果,拉链操作")
    val symbols = Array("<", "-", ">")
    val counts = Array(2, 10, 2)
    val paris = symbols.zip(counts)
    println(paris)
    for ((s, n) <- paris)
      println(s * n)


    val symbols1 = Array("<", "-", ">")
    val counts1 = Array(3, 20, 3)
    val paris1 = symbols1.zip(counts1)
    println(paris1)
    for ((s, n) <- paris1)
      println(s * n)


    val symbols2 = Array("<", "-", ">")
    val counts2 = Array("a", "b", "c")
    val paris2 = symbols2.zip(counts2)
    println(paris2)
    for ((s, n) <- paris2)
      println(s + "+" + n)
  }
}
